add the facility to limit ranges per rangeset
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 12 May 2014 10:04:45 +0000 (12:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 May 2014 10:04:45 +0000 (12:04 +0200)
commit236f3d2ae4ecac5044465bf3bec47025b0dc327d
tree517f56b1e56c20d0a7d8039a53a0a00585076a3c
parent780e918a2e54e8b9e63fe154cf060c1949bfb41b
add the facility to limit ranges per rangeset

A subsequent patch exposes rangesets to secondary emulators, so to allow a
limit to be placed on the amount of xenheap that an emulator can cause to be
consumed, the function rangeset_limit() has been created to set the allowed
number of ranges in a rangeset. By default, there is no limit.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/rangeset.c
xen/include/xen/rangeset.h